# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=py3-pyperclip
_pkgname=pyperclip
pkgver=1.8.0
pkgrel=0
pkgdesc="Python module for copy and paste clipboard functions"
url="https://github.com/asweigart/pyperclip"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/${_pkgname/-/_}-$pkgver
options="!check" # bug in tests prevents them from even starting :-/

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

check() {
	python3 setup.py test
}
sha512sums="ffc37f8cc9028aa1bb907b22b3d18adfd6080de1b3fe6ea2bf6f28ad6fedd96e09e5939fc5b8cef538415527cad8f13670b7c671fb1b2a3f1a2bd2cc078d3d56  py3-pyperclip-1.8.0.tar.gz"
